package com.xuzhen.designPattern.decorator.one;

public abstract class Decorate extends Phone {
	protected Phone phone;

	public Decorate(Phone _pone) {
		this.phone = _pone;
	}

	public void function() {
		if (phone != null) {
			System.out.println("a----------");
			phone.function();
		}
	}

}
